package Student;

import java.util.ArrayList;

public class StudentManager {
    private ArrayList<Student> students;

    public StudentManager() {
        students = new ArrayList<>();
    }

    public void addStudent(String studentName, String className) {
        students.add(new Student(studentName, className));
        System.out.println("已新增学生: " + studentName);
    }

    public ArrayList<Student> getStudents() {
        return students;
    }
}
